package com.maxdu.labs.stt.models;

import java.util.Date;

public class Training {
	private String tplanId;
	private String userId;
	private long date;
	private int type;
	
	public static final String PARSE_DB_TABLENAME = "training";
	public static final String PARSE_DB_FIELD_TPLANID = "tplanId";
	public static final String PARSE_DB_FIELD_USERID = "userId";
	public static final String PARSE_DB_FIELD_DATE = "date";
	public static final String PARSE_DB_FIELD_TRAINING_TYPE = "trainingType";
	
	public static final int DAY_TODAY = 0;
	public static final int DAY_YESTERDAY = -1;
	public static final int DAY_DAY_BEFORE_YESTERDAY = -2;
	
	public Training(String tplanId, String userId, long date, int type) {
		super();
		this.tplanId = tplanId;
		this.userId = userId;
		this.date = date;
		this.type = type;
	}
	
	public String getTPlanId() {
		return tplanId;
	}
	public void setTPlanId(String tplanId) {
		this.tplanId = tplanId;
	}
	public String getUserId() {
		return userId;
	}
	public void setUserId(String userId) {
		this.userId = userId;
	}
	public long getDate() {
		return date;
	}
	public void setDate(long date) {
		this.date = date;
	}
	public int getType() {
		return type;
	}
	public void setType(int type) {
		this.type = type;
	}
}
